<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
<div id="app">
    随机数：{{number}}
    是否是偶数：
    <span v-if="number%2===0">{{number}}是偶数</span>
    <span v-show="number%2===0">{{number}}也是偶数</span>
    <hr/>
    <label v-if="number>=50">大于50</label>
    <label v-else>小于50</label>
    <hr/>
    <label v-if="number>=90">优秀</label>
    <label v-else-if="number>=80">良好</label>
    <label v-else-if="number>=60">及格</label>
    <label v-else>差</label>
</div>
</body>
</html>
<script src="../js/vue.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data() {
            return {
                number: Math.floor(Math.random() * 100 + 1),
            }
        },

    })
</script>
